package com.ljw.food_order_server.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 订单详情
 * </p>
 *
 * @author ljw
 * @since 2021-07-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("orderdetail")
@ApiModel(value="Orderdetail对象", description="订单详情")
public class Orderdetail implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "订单详情表的id")
    @TableId(value = "orderDetailId", type = IdType.ID_WORKER)
    private String orderDetailId;

    @ApiModelProperty(value = "订单id")
    @TableField("orderId")
    private String orderId;

    @ApiModelProperty(value = "订单总价格")
    @TableField("totalPrice")
    private Double totalPrice;

    @ApiModelProperty(value = "订单中包含的食物id")
    @TableField("foodId")
    private String foodId;


}
